﻿/// <reference path="js/jquery.js" />
/// <reference path="js/svg.js" />
/// <reference path="js/pv.core.js" />
/// <reference path="js/pv.projectile.js" />
/// <reference path="js/target.js" />

var village = {
    max_hp: 500,
    hp: 500,
    armor: 12,
    max_ch: 2,
    max_stone: 5
};

var ch = 0;
var stone = 0;

var intervalSet = [];




function pause() {
    if (pv.pause) {
        $(this).text("Pause");
        pv.pause = false;
    }
    else {
        $(this).text("Start");
        pv.pause = true;
    }
}
$(function () {
    $("#pause").click(pause);
    villageHP(0);
    // $("svg#main").createTarget("bandit", { x: 0, y: Math.random() * 600 + 100 }, 90);
    start();

    //$("svg#main").createProjectile("stone", { x: 1100, y: Math.random() * 600 + 100 });
});
function start() {

}